package com.none.core.common.utils;

public class ReplaceUtil {
	/**
	 * 替换字符串
	 * @param oldStr  原字符串
	 * @param someStr 要替换掉的字符串
	 * @param resultStr  要替换成什么
	 * @return
	 */
	public static String replaceSomeString(String oldStr,String someStr,String resultStr){
		return oldStr.replaceAll(someStr, resultStr);
	}
	public static void main(String[] args) {
		//System.out.println(replaceSomeString("/freemarker/upload/img/20150625/1437724422245.png","/freemarker/upload","http://127.0.0.1:8080/freemarker/upload"));
	}

}
